const Koa = require("koa");
const ejs = require('ejs');
const pug = require('pug')

const { html, ejsTpl, pugTpl } = require('./tpl/index');

const app = new Koa()
// console.log(normal, 'normal')
app.use(async (ctx, next) => {
  ctx.type = 'text/html; charset=utf-8'
  ctx.body = pug.render(pugTpl, {
    message: 'hello world'
  });

})

app.listen(5656)